package org.bulu.project.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 聊天表(Chat)实体类
 *
 * @author makejava
 * @since 2024-08-12 21:49:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Chat implements Serializable {
    private static final long serialVersionUID = -75657046593962803L;
/**
     * 唯一主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
/**
     * 对象UID
     */
    private Integer userId;
/**
     * 用户UID
     */
    private Integer anotherId;
/**
     * 是否移除聊天 0否 1是
     */
    private Integer isDeleted;
/**
     * 消息未读数量
     */
    private Integer unread;
/**
     * 最近接收消息的时间或最近打开聊天窗口的时间
     */
    private Date latestTime;
}